<meta charset="UTF-8">
<script src="https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/jquery/jquery-1.10.2.min_65682a2.js"></script>
<div id="loading" style="display:none;"><img src="images/11.jpg"  /></div>

<script>
    $(start);

    function donghua(){
        $("#loading").toggle(3000,function(){
            donghua();
        });
    }

    function start(){
      $(document).click(
          function(){
            $("#loading").slideToggle(1000);
          }
      );
    }

</script>